package com.fourth.shopping.service;


import com.fourth.shopping.dto.GoodsTableSearch;
import com.fourth.shopping.entity.Goods;
import com.fourth.shopping.entity.Item;
import com.fourth.shopping.vo.PageCondition;


import java.util.List;


public interface GoodsService {

    /**
     * 分页获取所有商品信息
     * @param goods
     * @param condition
     * @return
     */
    List<GoodsTableSearch> getGoodsByLimit(Goods goods, PageCondition condition);

    /**
     *获取总商品个数
     * @param goods
     * @return
     */
    Integer getGoodsCountByGoodId(Goods goods);

    /**
     * 逻辑删除商品
     * @param goodsId
     * @return
     */
    Integer deleteGoods(String goodsId);

    /**
     * 获取所有商品种类
     * @return
     */
    List<Item> getGoodsAllType();

    /**
     * 添加商品
     * @param goods
     * @return
     */
    Integer addGoods(Goods goods);
}
